package pe.edu.pucp.cpnc.mm.resdb;

import com.sun.org.apache.xml.internal.utils.SerializableLocatorImpl;
import java.io.Serializable;
import java.util.ArrayList;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

import pe.edu.pucp.cpnc.mm.bean.Building;
import pe.edu.pucp.cpnc.mm.bean.Nature;
import pe.edu.pucp.cpnc.mm.bean.Tile;
import pe.edu.pucp.cpnc.mm.bean.Unit;

@XmlRootElement
public class ManagerDB implements Serializable{
	private ArrayList<Tile> availableTiles = new ArrayList<>();
	private ArrayList<Unit> availableUnits = new ArrayList<>();
	private ArrayList<Building> availableBuildings= new ArrayList<>();
	private ArrayList<Nature> availableNature = new ArrayList<>();
	
	@XmlElementWrapper
	@XmlElement(name = "tile")
	public ArrayList<Tile> getAvailableTiles() {
		return availableTiles;
	}
	public void setAvailableTiles(ArrayList<Tile> availableTiles) {
		this.availableTiles = availableTiles;
	}
	@XmlElementWrapper
	@XmlElement(name ="unit")
	public ArrayList<Unit> getAvailableUnits() {
		return availableUnits;
	}
	public void setAvailableUnits(ArrayList<Unit> availableUnits) {
		this.availableUnits = availableUnits;
	}
	@XmlElementWrapper
	@XmlElement(name = "building")
	public ArrayList<Building> getAvailableBuildings() {
		return availableBuildings;
	}
	public void setAvailableBuildings(ArrayList<Building> availableBuildings) {
		this.availableBuildings = availableBuildings;
	}
	@XmlElementWrapper
	@XmlElement(name = "nature")
	public ArrayList<Nature> getAvailableNature() {
		return availableNature;
	}
	public void setAvailableNature(ArrayList<Nature> availableNature) {
		this.availableNature = availableNature;
	}

}
